import request from '@/utils/request'

export function listResourceTreeItemForManage(data) {
  return request({
    url: '/api/uc/resource/list_tree_item_for_manage',
    method: 'post',
    data
  })
}

export function listResource(data) {
  return request({
    url: '/api/uc/resource/page',
    method: 'post',
    data
  })
}

export function addResource(data) {
  return request({
    url: '/api/uc/resource/save',
    method: 'post',
    data
  })
}

export function updateResource(data) {
  return request({
    url: '/api/uc/resource/update',
    method: 'post',
    data
  })
}

export function deleteResource(data) {
  return request({
    url: '/api/uc/resource/delete',
    method: 'post',
    data
  })
}
